from rest_framework.viewsets import ModelViewSet
from meiduo_admin.serializer import spu_specs_serializer


from goods.models import SPUSpecification
from meiduo_admin.my_paginate import MyPageNumberPagination

class SPUSpecView(ModelViewSet):
    pagination_class = MyPageNumberPagination
    queryset = SPUSpecification.objects.all()
    serializer_class = spu_specs_serializer.SPUSpecSerializer

